package com.main.hotel.service.impl;

import com.main.hotel.entity.Feedback;
import com.main.hotel.repository.FeedbackRepository;
import com.main.hotel.service.FeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class FeedbackServiceImpl implements FeedbackService {
  @Autowired
  private FeedbackRepository feedbackRepository;
  @Override
  public int addFeedback(Feedback feedback) {
    feedbackRepository.save(feedback);
    return 1;
  }
}
